package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @title: ApprovalEntity
 * @Author Xiaoboyu
 * @Date: 2021/11/26 14:18
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ToString(callSuper = true)
@ApiModel("审批历史实体类")
public class ApprovalHistoryEntity extends BaseEntity{
    /**
     * 审批主键
     */
    @ApiModelProperty(value = "审批主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;
    /**
     * 审批类型
     */
    @ApiModelProperty(value = "审批类型")
    private String  approvalType;
    /**
     *审批编码
     */
    @ApiModelProperty(value = "审批编码")
    private String  approvalCode;
    /**
     *申请人id
     */
    @ApiModelProperty(value = "申请人id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long  applyUserId;
    /**
     *申请人姓名
     */
    @ApiModelProperty(value = "申请人姓名")
    private String  applyName;
    /**
     *申请部门
     */
    @ApiModelProperty(value = "申请部门")
    private String  applyDeptCode;
    /**
     *审批人id
     */
    @ApiModelProperty(value = "审批人id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long  approvalUserId;
    /**
     *审批部门
     */
    @ApiModelProperty(value = "审批部门")
    private String approvalDeptCode;
    /**
     *审批内容或意见
     */
    @ApiModelProperty(value = "审批意见")
    private String  approvalOpinion;
    /**
     *审批状态
     */
    @ApiModelProperty(value = "审批状态（ing审批中 pass审批通过 reject审批未通过）")
    private String  approvalState;
    /**
     *审批任务
     */
    @ApiModelProperty(value = "审批任务")
    private String  approvalTask;
    /**
     *审批节点
     */
    @ApiModelProperty(value = "审批节点")
    private String  approvalFlow;
}
